projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc71812
)
(tool-bar-add-item-from-menu): Make sure to change the global tool-bar-map.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 16 Jul 2002 22:46:09 +0000
(22:46 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 16 Jul 2002 22:46:09 +0000
(22:46 +0000)
lisp/toolbar/tool-bar.el
patch
|
blob
|
history
diff --git
a/lisp/toolbar/tool-bar.el
b/lisp/toolbar/tool-bar.el
index 8a5561f7f557fd52f809f7a4a27181b273b22170..4cee4a00e655bdabc6ca9431ee325d282f6eb135 100644
(file)
--- a/
lisp/toolbar/tool-bar.el
+++ b/
lisp/toolbar/tool-bar.el
@@
-149,7
+149,8
@@
MAP must contain appropriate binding for `[menu-bar]' which holds a keymap.
Use this function only to make bindings in the global value of `tool-bar-map'.
To define items in any other map, use `tool-bar-local-item'."
- (apply 'tool-bar-local-item-from-menu command icon tool-bar-map map props))
+ (apply 'tool-bar-local-item-from-menu command icon
+ (default-value 'tool-bar-map) map props))
;;;###autoload
(defun tool-bar-local-item-from-menu (command icon in-map &optional from-map &rest props)